package _03线程属性;

public class MyThread extends Thread {

	@Override
	public void run() {
		// 得到当前线程对象 Thread.currentThread()

		// 打印线程信息
		System.out.println("子线程编号:" + Thread.currentThread().getId());// 线程编号
		System.out.println("子线程名字:" + Thread.currentThread().getName());// 线程名
		System.out.println("子线程优先级:" + Thread.currentThread().getPriority());// 5 1~10

	}
}
